import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    component: () => import('@/views/dlMusic.vue'),
    children: [
      {
        path: 'recommend',
        component: () => import('@/pages/app-recommend.vue')
      },
      {
        path: 'hotmusic',
        component: () => import('@/pages/app-hotmusic.vue')
      },
      {
        path: 'search',
        component: () => import('@/pages/app-search.vue')
      },

    ]
  }

]

const router = new VueRouter({
  routes
})

export default router
